import { ApiProperty } from '@nestjs/swagger';
import { IsNotEmpty, IsString } from 'class-validator';

export class CreateLogDto {
  @ApiProperty({ description: '操作人', example: '这是一条日志内容' })
  @IsNotEmpty()
  @IsString()
  username: string;
  @ApiProperty({ description: '接口名称', example: '这是一条日志内容' })
  @IsNotEmpty()
  @IsString()
  title: string;
}
